<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>数组</title>
		<script>
			var a=new Array(4);
			a[0]="章疼";
			a[1]="赵青";
			a[2]="杨刚";
			a[30]="华伟成";
			document.write(a.length);//
			//a.length=10;
			var str=a.join("$");
			alert(str);
			var a2=["zhengteng","xiaodu","zhuranran"];
			//alert(a2.join());
			for(var i=0;i<a2.length;i++){
				document.write(a2[i]);
				document.write("<br/>");
			}
		</script>
	</head>
	<body>
	</body>
</html>
